// index.js
// 获取应用实例
const App = getApp()

Page({
  data: {
    top:0,
    nextMargin: 0,
    current: 'tab1',
    current_scroll: 'tab1'
  },
  onLoad() {
    let top = 100+App.globalData.systemInfo.statusBarHeight + App.globalData.menuButton.height + (App.globalData.menuButton.top - App.globalData.systemInfo.statusBarHeight)*2
    console.log(top)
    this.setData({top:top})
  },
  handleChangeScroll ({ detail }) {
    this.setData({
        current_scroll: detail.key
    });
  },
  handleChange ({ detail }) {
    this.setData({
        current: detail.key
    });
  },
  toinfo(){
    wx.navigateTo({
      url: '../teacherInfo/index',
    })
  }
})
